package com.dennytech.tac.model;

import android.os.Parcel;
import android.os.Parcelable;

public class Togo extends CFObject implements Parcelable {

	private int id;
	private int attId;
	private String attDb;
	private int status;// 0.plan 1.completed

	public Togo() {
	}

	public Togo(Parcel in) {
		id = in.readInt();
		attId = in.readInt();
		attDb = in.readString();
		status = in.readInt();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAttId() {
		return attId;
	}

	public void setAttId(int attId) {
		this.attId = attId;
	}

	public String getAttDb() {
		return attDb;
	}

	public void setAttDb(String attDb) {
		this.attDb = attDb;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeInt(attId);
		dest.writeString(attDb);
		dest.writeInt(status);
	}

	public static final Parcelable.Creator<Togo> CREATOR = new Parcelable.Creator<Togo>() {
		public Togo createFromParcel(Parcel in) {
			return new Togo(in);
		}

		public Togo[] newArray(int size) {
			return new Togo[size];
		}
	};

}
